package org.wit.ecommerce.service;

import java.util.Map;

import org.wit.ecommerce.domain.Discount;
import org.wit.ecommerce.dto.Navigator;
/**
 * 
 * @author Justin
 *
 */
public interface IDiscountService {
	/**
	 * add a discount number
	 * @param discount
	 */
	void createDiscount(Discount discount);
	
	/**
	 * update a discount number
	 * @param discount
	 */
	void updateDiscount(Discount discount);
	
	/**
	 * delete a discount number
	 * @param id
	 */
	void deleteDiscount(Long id);
	
	/**
	 * get discount numbers by page and keywords
	 * @param page
	 * @param keywords
	 * @return
	 */
	Navigator<Discount> getDiscountsByPage(int page, Map<String,?> keywords);
	
	/**
	 * get discount number by id
	 * @param id
	 * @return
	 */
	Discount getDiscountById(Long id);
}
